package com.ccx.coachsite.bus;

import com.ccx.coachsite.R;
import com.ccx.coachsite.task.GetGetVerifyTask;

import android.app.Activity;
import android.content.Context;

public class GetVerifyCodeBus extends BaseBus 
{

	public GetVerifyCodeBus(Activity activity) {
		super(activity, activity.getString(R.string.register_get_verify_running));
		successInfo = "获取验证码成功";
		errorInfo = "获取验证码失败";
	}
	
	public GetVerifyCodeBus(Context context) {
		super(context);
		processInfo = context.getResources().getString(R.string.register_get_verify_running);
		successInfo = "获取验证码成功";
		errorInfo = "获取验证码失败";
	}

	public void getVerifyCode(String mobile) 
	{
		showProgress();
		GetGetVerifyTask task = new GetGetVerifyTask(this, mContext, mobile);
		task.execute();
	}
}